#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2022/5/6 15:33
# @Author  : peng bo
# @Site    : 
# @File    : config.py
# @Software: PyCharm

DEBUG = True

DIALECT = 'mysql'
DRIVER = 'pymysql'
USERNAME = 'root'
PASSWORD = '123456'
HOST = '127.0.0.1'
PORT = '3306'
DATABASE = 'sct'

SQLALCHEMY_DATABASE_URI = '{}+{}://{}:{}@{}:{}/{}?charset=utf8'.format(DIALECT, DRIVER, USERNAME, PASSWORD, HOST, PORT,
                                                                       DATABASE)
SQLALCHEMY_TRACK_MODIFICATIONS = True


SESSION_TYPE = 'filesystem'  # 或者 'redis', 'memcached', 'mongodb' 等
SESSION_PERMANENT = False
SESSION_USE_SIGNER = True
SESSION_KEY_PREFIX = 'your_prefix:'